<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>OA--办公系统</title>
 {cssjs}
 <link href="/res/css/grid.css" rel="stylesheet" />
 <link href="/res/css/index.css" rel="stylesheet" />
 <style type="text/css">
    .top_announce{
        height: 60px;
        line-height: 60px;
        background: #fff;
        cursor: pointer;
        font-size: 16px;
        color:red;
    }
    .top_announce .a_content{
        margin-left: 10px;
    }
 </style>
</head>

<body>
    <div class="layui-layout layui-layout-admin">
    <!--顶部-->
    <div class="layui-header header header-admin">
        <div class="layui-main">
            <a class="logo" href="/"><img src="/res/images/adminlogo.png"/></a>
        </div>
        <ul class="layui-nav" id="menu" lay-filter="top_main">
            <!-- START tp_menu -->  
            <li class="layui-nav-item">
                <a href="javascript:void(0);" data-id="{id}">
                    <i class="fa {ico}"></i><cite>{name}</cite>
                </a>
            </li>
            <!-- END tp_menu --> 
        </ul>
        <ul class="layui-nav" style="right:0;margin:0"  lay-filter="toprt">
         <li class="layui-nav-item">
            <a href="/wap/" target="_blank">手机/微信站</a>
         </li>
         <li class="layui-nav-item">
           <a href="javascript:void(0);" class="admin-header-user">
            <img src="/res/images/0.jpg" style="width: 40px; height: 40px; border-radius: 100%;" />
            <span>{uname}</span>
           </a>  
           <dl class="layui-nav-child" style="left:-2px;">
                <dd>
                   <a href="javascript:void(0);" data-url="?t=userinfo" data-id="20"  icon="&#xe69c;" title="个人信息" class="frame_Add"><i class="fa fa-user-circle" aria-hidden="true"></i> 个人信息</a>
                </dd>
                <dd>
                   <a  href="javascript:void(0);" data-url="?t=uppass" data-id="21" icon="&#xe613;" title="修改密码" class="frame_Add"><i class="fa fa-gear" aria-hidden="true"></i> 修改密码</a>
                </dd>
                <dd>
                   <a href="/html/common/srv/logout.php" class="do-admin"><i class="fa fa-sign-out" aria-hidden="true"></i> 注销</a>
               </dd>
           </dl>    
         </li>
        </ul>
    </div>
    <div class="cle"></div>
    <!--侧边导航-->
    <div class="layui-side">
        <div class="layui-side-scroll">
            <ul class="layui-nav layui-nav-tree" lay-filter="leftnav" id="left_mu">
                    <li class="layui-nav-item layui-this">
                        <a href="javascript:;"><i class="fa fa-home"></i>首页</a>
                    </li>
            </ul>
        </div>
    </div>
    <!--收起导航-->
    <div class="layui-side-hide layui-bg-cyan">
        <i class="fa fa-long-arrow-left fa-fw"></i>收起导航
    </div>
    <!--主体内容-->
    <div class="layui-body">
        <div style="margin:0;position:absolute;top:4px;bottom:0px;width:100%;" class="layui-tab layui-tab-brief" lay-filter="tab" lay-allowclose="true">
            <ul class="layui-tab-title">
                <li lay-id="0" class="layui-this">首页</li>
            </ul>
            <div class="layui-tab-content">
                    <div class="layui-tab-item layui-show">
                        <!-- 公告 -->
                        <marquee style="margin-bottom: 15px" class="top_announce announce" behavior=scroll scrollamount=10 data-id="{a_id}"><i class="fa fa-bullhorn"></i><span class="a_content">{a_content}</span></marquee>
                        <div class="row">
                            <div class="col-md-6">
                                <fieldset class="layui-elem-field" >
                                    <legend>公告</legend>
                                    <div class="layui-field-box">
                                        <ul class="announce-ul">
                                            {a_html}
                                        </ul>
                                    </div>
                                </fieldset>                                    
                            </div>
                            <div class="col-md-6">
                                <fieldset class="layui-elem-field" >
                                    <legend>公告</legend>
                                    <div class="layui-field-box">
                                        <ul class="announce-ul">
                                            {a_html}
                                        </ul>
                                    </div>
                                </fieldset>                                    
                            </div>
                        </div>
                    </div>
                </div>
        </div>
    </div>
    <!--底部信息-->
    <div class="layui-footer">
        <p style="line-height:44px;text-align:center;">oa办公管理系统</p>
    </div>
    <!--end-->
    </div>
    {jsmodel}
   <script type="text/javascript">
        layui.use('index');

        var isannounce = '{isannounce}';
        if(!isannounce){$('.top_announce').hide();}
        $('.a_content').each(function(){
            var announce = $(this).html();
            announce = announce.replace(/<[^>]+>/g,"");
            //announce = announce.substr(0,30);
            $(this).html(announce);
        })
        $('.announce-ul li').each(function(){
            var li = $(this).html();
            li = li.replace(/^\s+/,"");
            $(this).html(li);
        })
    </script>
</body>
</html>
